package com.ftg.learn.util;

/**
 * @author wangty
 * @date 2022/10/21
 */
public enum ResultJsonEnum {
    /**
     * 成功方法信息封装
     */
    OK(TipMess.SUCCESS_CODE,TipMess.SUCCESS_MSG),
    /**
     * 操作失败的方法
     */
    FAILURE(TipMess.FAILURE_CODE,TipMess.FAILURE_MSG);

    private int code;

    private String msg;

    ResultJsonEnum( int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
